package com.renjiyue.Day2.fahongbao;

import java.util.Random;

/**
 *  接受红包
 */
public class CommonPeople {

    public int accept(int[] arr){
        Random random = new Random();
        int i = random.nextInt(arr.length);
        return arr[i];
    }
}
